﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ReportQuery.aspx.cs" Inherits="ReportQuery" Title="Untitled Page" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
<table width = "100%">
<tr>
<td class="condition">
报告编号：<asp:TextBox ID="TextBoxReportId" runat="server"></asp:TextBox>委检单位：<asp:TextBox ID="TextBoxCorpName" runat="server">
</asp:TextBox>状态：<asp:DropDownList ID="DropDownListStatus" runat="server" Width="107px"></asp:DropDownList><br />
时间范围：<asp:TextBox ID="TextBoxBegin"  runat="server"/>
 <asp:ImageButton runat="Server" ID="Image1" ImageUrl="images/Calendar_scheduleHS.png" AlternateText="单击显示日历" />
 <ajaxToolkit:CalendarExtender
    ID="CalendarExtender1"
    TargetControlID="TextBoxBegin"
    PopupButtonID="Image1"
    Format="yyyy-MM-dd"
    runat="server">
</ajaxToolkit:CalendarExtender> 
 至 <asp:TextBox ID="TextBoxEnd"  runat="server"/> 
 <asp:ImageButton runat="Server" ID="Image2" ImageUrl="images/Calendar_scheduleHS.png" AlternateText="单击显示日历" />
  <ajaxToolkit:CalendarExtender
    ID="CalendarExtender2"
    TargetControlID="TextBoxEnd"
    PopupButtonID="Image2"
    Format="yyyy-MM-dd"
    runat="server"/>
    <asp:Button ID="btnFilterQuery" runat="server" Text="条件查询" OnClick="btnFilterQuery_Click" />
    &nbsp; &nbsp; &nbsp;&nbsp;
    <asp:Button ID="btnQueryAll" runat="server" Text="查询全部" OnClick="btnQueryAll_Click" />
</td>
</tr>
<tr>
<td>
<asp:GridView ID="GridViewContracts" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333"  Width="100%"/>
                    <Columns>
                        <asp:BoundField DataField="Report_ID" HeaderText="报告编号" />
                        <asp:BoundField DataField="Report_Status_Text" HeaderText="报告状态" />
                        <asp:BoundField DataField="Corp_Name" HeaderText="委检单位" />
                        <asp:BoundField DataField="Consigner" HeaderText="委托人" />
                        <asp:BoundField DataField="Tel" HeaderText="电话" />
                        <asp:BoundField DataField="Charge" HeaderText="合同额" />
                        <asp:BoundField DataField="Create_Time" HeaderText="创建时间" />
                        <asp:HyperLinkField DataNavigateUrlFields="Report_ID" DataNavigateUrlFormatString="CreateContract.aspx?reportid={0}"
                            HeaderText="查看/编辑" Target="_self" Text="查看/编辑" />
                    </Columns>
                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
      </asp:GridView>
            
             <webdiyer:AspNetPager ID="AspNetPager1" runat="server" ShowCustomInfoSection="Left"
                            CustomInfoHTML="总记录数：%RecordCount%，总页数：%PageCount%，当前为第%CurrentPageIndex%页" CustomInfoTextAlign="left"
                            CustomInfoStyle="padding-top:8px;font-weight:bold;" HorizontalAlign="right" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
                            PrevPageText="上一页" ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页"
                            TextBeforePageIndexBox="转到" CssClass="anpager" CurrentPageButtonClass="cpb">
                        </webdiyer:AspNetPager>
</td>
</tr>
</table>
    

</asp:Content>

